package com.open.capacity.controller;

import com.open.capacity.common.entity.ShowModel;
import com.open.capacity.common.web.Result;
import com.open.capacity.service.ShowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/show")
public class ShowController {
    @Autowired
    private ShowService showService;

    @GetMapping("/findAll")
    public Object findAll(){
        List<ShowModel> all = showService.findAll();
        return Result.succeed(all,"操作成功");
    }

}
